package com.zt.observer.service;

import com.zt.observer.event.ApplyEvent;
import lombok.extern.java.Log;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;

/**
 * 生成服务
 *
 * @author zt
 * @date 2021/12/10 10:59
 */
@Slf4j
@Service
public class CodeGenerateService {

    @EventListener
    public void generateCode(ApplyEvent applyEvent) {

        log.info("apply {} received",applyEvent.getApply().getName());
    }


}
